package polymorphismTest;

public class CreditCard extends Pay{
    public CreditCard() {
    }

    public CreditCard(double money) {
        super(money);
    }

    @Override
    public void payment() {
        System.out.println("通过信用卡支付了"+getMoney()+"元");
    }
}
